/* Sample
 */

#include <stdlib.h>
#include <gtk/gtk.h>

void destroy_window_signal (GtkObject *, gpointer);

int
main (int argc, char *argv[])
{

  gtk_init (&argc, &argv);

  GtkWindow* window = GTK_WINDOW (gtk_window_new (GTK_WINDOW_TOPLEVEL));

  g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy_window_signal), NULL);

  gtk_widget_show_all (GTK_WIDGET (window));

  gtk_main ();

  return EXIT_SUCCESS;

}


void
destroy_window_signal (GtkObject *object, gpointer user_data)
{

  gtk_main_quit ();

  (void)object;
  (void)user_data;

}
    
